<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery.multiSelect-1.2.3/jquery.bgiframe.min.js" type="text/javascript"></script>
<script src="js/jquery.multiSelect-1.2.3/jquery.multiSelect.js" type="text/javascript"></script>
<link href="js/jquery.multiSelect-1.2.3/jquery.multiSelect.css" rel="stylesheet" type="text/css" />

<title>回访跟进</title>
<script type="text/javascript">
	$(document).ready( function() {
		$("#selDep").multiSelect({
			selectAll: false,
	        noneSelected: '选择科室',
	        oneOrMoreSelected: '*'});
		$("#selStatus").multiSelect({
			selectAll: false,
	        noneSelected: '选择跟进状态',
	        oneOrMoreSelected: '*'});
	});
</script>
</head>

<body>
	<div id="wrap">
    	<div class="m_head">
        	<div class="m_positin">回访跟进</div>
            <div class="m_record">您今日已回访 <span class="orange"><b>98</b></span> 位客户，本月已回访 <span class="orange"><b>1278</b></span> 位客户</div>
            <div class="clear"></div>
        </div>
        <div class="m_search">
        	<form method="get" action="" name="">
        	<input type="hidden" name="c" value="track" />
        	<input type="hidden" name="a" value="index" />
        	时间范围 <input name="startTime" class="Wdate" value="<?php echo $startTime?>" type="text" onClick="WdatePicker()"/> > <input name="endTime" value="<?php echo $endTime?>" class="Wdate" type="text" onClick="WdatePicker()"/> 
        	反馈人<input class="qi_text" name="" type="text" /> 
        	<select id="selDep" class="select" name="selDep" multiple="multiple">
        	<?php 
        	foreach ($depts as $dep) {
        		$selected = ($selDep and in_array($dep['DEP_NO'], $selDep)) ?  ' selected' : '';
        		echo "<option value=\"{$dep['DEP_NO']}\"{$selected}>{$dep['DEP_NAME']}</option>";
        	}
        	?>
        	</select> 
        	<select class="select" name="selStatus" id="selStatus" multiple="multiple">
        	<?php 
        	$trackStatus = ATools::getConfig('app.trackStatus');
        	foreach ($trackStatus as $key=>$name) {
        		$selected = ($selStatus and in_array("'$key'", $selStatus)) ?  ' selected' : '';
        		echo "<option value=\"{$key}\"{$selected}>{$name}</option>";
        	}
        	?>
        	</select> 
        	<input class="btn_search" name="" type="button" value="" />
        	</form>
        </div>
        <div class="m_content">
        	<table class="qi_table" width="0" border="0" cellpadding="0" cellspacing="1">
              <tr><th>反馈人姓名</th><th width="30%">内容</th><th>反馈时间</th><th>科室</th><th width="7%">跟进状态</th><th>最进处理时间</th><th width="6%">处理人</th><th width="11%">操作</th></tr>
              <tr><td>李红</td><td style="text-align:left;">为什么我总是反烧？</td><td>2012-02-26 14：00</td><td>呼吸外科</td><td><b class="greenword">已回复</b></td><td>2012-02-27 09：00</td><td>李梦</td><td><a href="genjinList.html">查看</a> <a href="">通过</a> <a href="">不通过</a></td></tr>
              <tr><td colspan="8"><?php echo $pager?></td></tr>
            </table>
        </div>
    </div>
</body>
</html>